﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmUsuariosRoles.aspx.cs" Inherits="WEB.frmUsuariosRoles" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h1>Administrar Roles</h1>
            <br />
        </div>

        <div class="panel-body col-md-3">
            <h2>Usuario:
                <asp:Label ID="lblUsuario" runat="server"></asp:Label></h2>
            <table border="0" style="font-size: 100%; font-family: Verdana" class="table table-hover">
                <tr>
                <td>
                    <b>Roles Disponibles:</b>
                    <br />
                    <asp:ListBox ID="lbRoles" runat="server" Rows="10" Width="110px"></asp:ListBox>           
                </td>
                <td  align="center">
                    <br /><br /><br />
                    <asp:Button ID="btnAgregar" runat="server" Text="&gt;&gt;" 
                         CssClass="btn btn-warning" /><br /><br />
                    <asp:Button ID="btnQuitar" runat="server" CssClass="btn btn-danger" Text="&lt;&lt;"/> 
                        
                </td>
                <td>
                    <b>Roles del Usuario:</b> 
                    <br />
                    <asp:ListBox ID="lbRolesForUser" runat="server" Rows="10" Width="110px"></asp:ListBox>
                </td>
             </tr>
                <tr>
                    <td>
                        <b>Crear Rol: </b>
                    </td>
                    <td>
                        <asp:TextBox ID="txtNewRol" runat="server" CssClass="form-control"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Button ID="btnCrearRol" runat="server" Text="Crear Rol" Visible="<%# puedeCrear %>" CssClass="btn btn-info" />
                    </td>
                </tr>
            </table>
            <asp:Label ID="lblMsgError" runat="server" ForeColor="Red"></asp:Label>
            <table border="0" style="font-size: 100%; font-family: Verdana" class="table">
                <tr>
                    <td></td>
                    <td align="right">
                        <asp:Button ID="btnCancelar" Text="Cancelar" CssClass="btn btn-primary" runat="server" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
